package com.sptpc.learnspring.mapper;

import com.sptpc.learnspring.model.Drink;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DrinkMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Drink record);

    int insertSelective(Drink record);

    Drink selectByPrimaryKey(Long id);

    List<Drink> selectAll();

    int updateByPrimaryKeySelective(Drink record);

    List<Drink> selectByName(String name);
}